package com.itheima.charest;

import java.io.*;

public class CharStreamDemo04 {
    public static void main(String[] args) throws IOException {
        BufferedReader bw=new BufferedReader(new FileReader("ChaStream\\a.txt"));
        char[] chars=new char[1024];
        int len;
        while ((len=bw.read(chars))!=-1){
            System.out.println(new String(chars,0,len));
        }
    }
}
